package com.yaodian100.ec.member.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author feeling.wang
 * 
 */
@Entity
@Table(name = "EC_MEMBER_PROVINCE")
public class Province extends BaseEntity {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -8879634053097511250L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_member_province")
	@SequenceGenerator(name = "seq_ec_member_province", sequenceName = "SEQ_EC_MEMBER_PROVINCE")
	@Column(name = "ID")
	private Long id;

	@Column(name = "NAME", length = 20, nullable = false)
	private String name;

	@Column(name = "ship_expense_rank", length = 5, nullable = false)
	private String shipExpenseRank;

	@Column(name = "SHOW_SEQ", nullable = false)
	private int showSeq;

	/**
	 * 是否已刪除,default=N
	 */
	@Column(name = "IS_DELETE", columnDefinition = "VARCHAR2(2 CHAR) default 'N'")
	private String isDelete;

	/**
	 * 是否前中台使用,default=Y
	 */
	@Column(name = "IS_FRONTEND", length = 1)
	private String isFrontend = "Y";

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getShowSeq() {
		return showSeq;
	}

	public void setShowSeq(int showSeq) {
		this.showSeq = showSeq;
	}

	public String getShipExpenseRank() {
		return shipExpenseRank;
	}

	public void setShipExpenseRank(String shipExpenseRank) {
		this.shipExpenseRank = shipExpenseRank;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}

	public String getIsFrontend() {
		return isFrontend;
	}

	public void setIsFrontend(String isFrontend) {
		this.isFrontend = isFrontend;
	}
}